import 'package:flutterproject/page/home/home.dart';
import 'package:flutterproject/page/login_all/forget_pwd/forget_pwd_page.dart';
import 'package:flutterproject/page/login_all/login/login_page.dart';
import 'package:flutterproject/page/login_all/register/register_page.dart';
import 'package:flutterproject/page/login_all/set_pwd/set_pwd_page.dart';
import 'package:flutterproject/page/main/main_page.dart';
import 'package:get/get.dart';

enum RouteName {
  homePage,
  mainPage,
  loginPage,
  registerPage,
  forgetPwdPage,
  setPwdPage,
}

class RouteConfig {
  ///别名映射页面
  static final List<GetPage> getPages = [
    GetPage(
      name: "/${RouteName.mainPage}",
      page: () => MainPage(),
    ),
    GetPage(
      name: "/${RouteName.loginPage}",
      page: () => LoginPage(),
    ),
    GetPage(
      name: "/${RouteName.registerPage}",
      page: () => RegisterPage(),
    ),
    GetPage(
      name: "/${RouteName.forgetPwdPage}",
      page: () => ForgetPwdPage(),
    ),
    GetPage(
      name: "/${RouteName.setPwdPage}",
      page: () => SetPwdPage(),
    ),
    GetPage(
      name: "/${RouteName.homePage}",
      page: () => HomePage(),
    ),
  ];
}
